cmake_minimum_required(VERSION 3.10)
project(CxxMemchecker)

set(CMAKE_CXX_STANDARD 11)
set(TOP_DIR ${PROJECT_SOURCE_DIR}/../..)

include(darwin.cmake)

set(SOURCE_FILES
        MemCheckerC.c
        MemRecoder.c
        RecoderList.c)

add_library(${PROJECT_NAME} ${LIB_TYPE} ${SOURCE_FILES})

set(LIBRARY_OUTPUT_PATH ${MC_INSTALL_DIR}/${LIB_TYPE}/libs/)
install(FILES ${MC_INSTALL_INCLUDE_FILES}
        DESTINATION ${MC_INSTALL_DIR}/${LIB_TYPE}/includes/)
install(FILES ${MC_INSTALL_CONFIG_FILES}
        DESTINATION ${MC_INSTALL_DIR}/${LIB_TYPE}/config/)